package rpg.script;

import java.awt.Color;

import rpg.map.Effect;
import rpg.map.Location;

public class Script {
	// Shortcuts
	public void addEffectText(String text, Color color, Location pos) {
		this.addEffectText(text, color, pos, 1000);
	}

	public void addEffectText(String text, Color color, Location pos, int time) {
		Effect effect = new Effect("text", time);
		effect.getData().setName(text);

		effect.setColor(color);
		pos.addEffect(effect);
	}
}
